namespace RBAC.Domain.Repositories;

public interface IRepository<T>
{
    Task<T> GetByIdAsync(int id);
    Task<List<T>> ListAsync();
    Task<T> AddAsync(T entity);
    Task<T> UpdateAsync(T entity);
    Task DeleteAsync(int id);
}